from django.conf.urls import url, include
from . import views

urlpatterns = [
    url(r'^$', views.IndexView.as_view(), name='index'),
    url(r'^register/$', views.RegisterView.as_view(), name='register'),
    url(r'^login/$', views.LoginView.as_view(), name='login'),
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),
    url(r'^forget/$', views.ForgetPwdView.as_view(), name='forget_pwd'),
    url(r'^reset/(?P<active_code>.*)/$', views.ResetView.as_view(), name='reset_pwd'),   # 修改密码

    url(r'^image/upload/$', views.UploadImageView.as_view(), name='image_upload'),  # 获取当前登录用户信息
    url(r'^user/info/$', views.UserInfoView.as_view(), name='user_info'),   # 修改用户信息
    url(r'^mycourse/$', views.MyCourseView.as_view(), name='mycourse'),
    url(r'^mymessage/$', views.MyMessageView.as_view(), name='mymessage'),
    url(r'^myfav/org/$', views.MyFavOrgView.as_view(), name='myfav_org'),   # 我的收藏
]
